﻿@model JaxaraRnD.Models.Objects.Order
@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Order</legend>
        @Html.HiddenFor(model => model.Id)
        <div class="editor-label">
            @Html.LabelFor(model => model.IssueDate)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.IssueDate)

            @Html.ValidationMessageFor(model => model.IssueDate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Staff, "Staff")
        </div>
        <div class="editor-field">
            @Html.DropDownList("Staffs", ViewBag.StaffId as SelectList)
            @Html.ValidationMessageFor(model => model.Staff)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Products)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Products, "Products")
            @Html.ValidationMessageFor(model => model.Products)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
